﻿<%@ Page Title="" Language="C#" MasterPageFile="~/4SMasterPage.master" AutoEventWireup="true" CodeFile="OrderView.aspx.cs" Inherits="OrderView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style3
        {
            width: 73px;
        }
        .style4
        {
            width: 74px;
        }
        .style5
        {
            width: 90px;
        }
        .style6
        {
            width: 152px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <p>
    <br />
</p>
    <p>
        <table style="width: 100%;">
            <tr>
                <td class="style3">
                    <asp:Label ID="Label3" runat="server" Text="订单ID:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
                </td>
                <td class="style5">
                    <asp:Label ID="Label4" runat="server" Text="订单状态:"></asp:Label>
                </td>
                <td class="style4">
                    <asp:DropDownList ID="ddlState" runat="server">
                        <asp:ListItem></asp:ListItem>
                        <asp:ListItem Value="1">订单预约</asp:ListItem>
                        <asp:ListItem Value="2">订单终止</asp:ListItem>
                        <asp:ListItem Value="3">订单完成</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="查询" onclick="Button1_Click" />
                </td>
            </tr>
               
        </table>
</p>
<p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
         AllowPaging="True" 
        onpageindexchanging="GridView1_PageIndexChanging" 
        onselectedindexchanging="GridView1_SelectedIndexChanging" 
        onpageindexchanged="GridView1_PageIndexChanged" 
        onselectedindexchanged="GridView1_SelectedIndexChanged" PageIndex="1" 
        PageSize="5">
        <Columns>
            <asp:BoundField HeaderText="订单编号" DataField="_orderId" />
            <asp:BoundField DataField="_vehicle" HeaderText="车牌号" />
            <asp:BoundField DataField="_orderState" HeaderText="订单状态" />
            <asp:BoundField DataField="_anaphaseCost" HeaderText="实际费用" />
            <asp:BoundField DataField="_totalCost" HeaderText="总费用" />
            <asp:TemplateField HeaderText="详细">
                <ItemTemplate>
                    <asp:ImageButton ID="ImageButton1" runat="server" Height="23px" 
                        ImageUrl="~/Image/show.png" Width="26px" CommandArgument ='<%#Eval("_orderId") %>' CommandName ="detail"/>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</p>
<p>
</p>
</asp:Content>

